package org.example.service.post;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.example.dao.dto.post.PCommentDto;

import java.util.List;

/**
 * @author 22449
 */
public interface CommentService {

    PCommentDto commentPost(Long postId, String content);

    IPage<PCommentDto> getCommentByMine(Integer limit,Integer start);


    Long likeComment(Long id);


    IPage<PCommentDto> getCommentByPost(Long postId, Integer start, Integer limit);


    PCommentDto updateComment(Long id, String content);

    void deleteComment(Long id);

    List<PCommentDto> getCommentByToMine(Integer isread, Long limit, Long start);
}
